package com.linux.huhx.quartz;

import org.springframework.context.Lifecycle;
import org.springframework.context.SmartLifecycle;

/**
 * Created by huhx on 2017-05-22.
 */
public class QuartzJob implements Lifecycle, SmartLifecycle {

    public void work() {
        System.out.println("Quartz的任务调度！！！");
    }

    @Override
    public void start() {
        System.out.println("I am start");
    }

    @Override
    public void stop() {
        System.out.println("I am stop");
    }

    @Override
    public boolean isRunning() {
        return false;
    }

    @Override
    public boolean isAutoStartup() {
        return true;
    }

    @Override
    public void stop(Runnable callback) {

    }

    @Override
    public int getPhase() {
        return 0;
    }
}